package bairui.international.controller.authority.authorization.role.operator;

/**
 * @see bairui.international.controller.authority.authorization.role.operator.OperatorSelectPage_BaseFilter
 *
 */
class OperatorSelectPage_Filter

{
	
	/**
	 * 过滤扩展接口
	 */
	static interface FilterExtends {
	}
	
	final static com.querydsl.core.BooleanBuilder query(
		bairui.international.model.domain.jpa.QTB_Admin QRoot,
		javax.servlet.http.HttpServletRequest request
	) {
		com.querydsl.core.BooleanBuilder query = query(
				QRoot
	,			com.sh_lianjing.string.util.Util_String.parseToType(
						request.getParameter("operatorName"), 
						String.class, 
						"yyyy-MM-dd"
					)
			);
			/* comment 附加过滤属性 */
	;
		return query;
	}
	
	final static com.querydsl.core.BooleanBuilder query(
		bairui.international.model.domain.jpa.QTB_Admin QRoot
	,	String operatorName
	) {
		com.querydsl.core.BooleanBuilder builder = new com.querydsl.core.BooleanBuilder();
	
		if(null != operatorName){
			builder.and(QRoot.operatorName.like("%"+operatorName+"%"));
		}
		return builder;
	}
	
}
